package client.comm.baoding.dialog

import androidx.fragment.app.FragmentActivity
import client.comm.baoding.R
import client.comm.baoding.databinding.DialogSelectbacktypeBinding
import client.tzstore.oo.dialog.BottomBindingDialog

class SelectBacktypeDialog(context: FragmentActivity) :
    BottomBindingDialog<DialogSelectbacktypeBinding>(context) {

    override fun getV(): Int {
        return R.layout.dialog_selectbacktype
    }

    override fun postBinding() {
        binding.event = this
    }

    var one: ((type: Int) -> Unit)? = null

    fun oneType(type: Int) {
        cancel()
        one?.invoke(type)
    }

}